public class ShazamHash {
    private int hashValue;
    public short f1;
    public short f2;
    public short dt;
    public int offset;
    public long id;

    public ShazamHash(short f1, short f2, short dt, int offset, int id) {
        this.f1 = f1;
        this.f2 = f2;
        this.dt = dt;
        this.offset = offset;
        this.id = id;
        this.hashValue = (dt << 18) | (f1 << 9) | f2;
    }

    public double getHash() {
        return this.hashValue;
    }
}
